import PhToast from './main.vue'
import { createApp } from 'vue'
export default {
    install(app:any){
        const 
            dom = document.createElement("div"),
            toast = createApp(PhToast),
            instance = toast.mount(dom) as InstanceType<typeof PhToast>;
            document.body.appendChild(instance.$el)
        app.config.globalProperties.$phToast = instance.show
    }
}